.dashboard {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

/* 背景装饰 */
.dashboard__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.dashboard__bg-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.dashboard__bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: pulse 4s ease-in-out infinite;
}

.dashboard__bg-glow--1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #00d4ff, transparent);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.dashboard__bg-glow--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #0066ff, transparent);
  bottom: -250px;
  right: -250px;
  animation-delay: 1.3s;
}

.dashboard__bg-glow--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #00ff88, transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 2.6s;
}

/* 头部 */
.dashboard__header {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
  z-index: 1;
}

.dashboard__title {
  font-size: 42px;
  font-weight: bold;
  background: linear-gradient(135deg, #00d4ff 0%, #0066ff 50%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
  letter-spacing: 4px;
  animation: glow 3s ease-in-out infinite;
  margin: 0;
}

.dashboard__header-decoration {
  position: absolute;
  top: 50%;
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.dashboard__header-decoration--left {
  left: 10%;
  transform: translateY(-50%);
}

.dashboard__header-decoration--right {
  right: 10%;
  transform: translateY(-50%);
}

.dashboard__time {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 1px;
}

/* 内容区域 */
.dashboard__content {
  position: relative;
  z-index: 1;
  height: calc(100% - 100px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard__section {
  width: 100%;
}

.dashboard__section--top {
  flex: 0 0 auto;
}

.dashboard__section--middle {
  flex: 1;
  min-height: 0;
}

.dashboard__section--bottom {
  flex: 1;
  min-height: 0;
}

/* 卡片网格 */
.dashboard__card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 图表行 */
.dashboard__chart-row {
  display: flex;
  gap: 20px;
  height: 100%;
}

/* 图表容器 */
.dashboard__chart-box {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 102, 255, 0.08) 100%);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.dashboard__chart-box:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow:
    0 10px 30px rgba(0, 212, 255, 0.2),
    inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.dashboard__chart-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.dashboard__chart-box--large {
  flex: 2;
}

.dashboard__chart-box--medium {
  flex: 1;
}

.dashboard__chart-box--gauge {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(0, 102, 255, 0.08) 100%);
  border-radius: 16px;
  padding: 15px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.dashboard__chart-box--gauge:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow:
    0 10px 30px rgba(0, 212, 255, 0.2),
    inset 0 0 20px rgba(0, 212, 255, 0.05);
}

/* 仪表盘网格 */
.dashboard__gauge-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
}

/* 环形进度网格 */
.dashboard__progress-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 102, 255, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  animation: fadeIn 0.8s ease-out 0.3s both;
}

/* 图表容器通用样式 */
.chart-container {
  width: 100%;
  height: 100%;
  min-height: 250px;
}

/* 响应式设计 */
@media (max-width: 1600px) {
  .dashboard__card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard__title {
    font-size: 36px;
  }
}

@media (max-width: 1200px) {
  .dashboard__chart-row {
    flex-direction: column;
  }

  .dashboard__chart-box--large,
  .dashboard__chart-box--medium {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .dashboard__card-grid {
    grid-template-columns: 1fr;
  }

  .dashboard__gauge-grid {
    grid-template-columns: 1fr;
  }

  .dashboard__title {
    font-size: 28px;
  }

  .dashboard__header-decoration {
    display: none;
  }
}
